package us.wili.dev.netty.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(ignoreUnknownFields = false, prefix = "netty.config")
public class NettyServerConfig {
    private Integer tcpPort;
    private Integer bossThreadCount;
    private Integer workerThreadCount;
    private Boolean socketKeepalive;
    private Integer socketBacklog;

    public Integer getTcpPort() {
        return tcpPort;
    }

    public void setTcpPort(Integer tcpPort) {
        this.tcpPort = tcpPort;
    }

    public Integer getBossThreadCount() {
        return bossThreadCount;
    }

    public void setBossThreadCount(Integer bossThreadCount) {
        this.bossThreadCount = bossThreadCount;
    }

    public Integer getWorkerThreadCount() {
        return workerThreadCount;
    }

    public void setWorkerThreadCount(Integer workerThreadCount) {
        this.workerThreadCount = workerThreadCount;
    }

    public Boolean getSocketKeepalive() {
        return socketKeepalive;
    }

    public void setSocketKeepalive(Boolean socketKeepalive) {
        this.socketKeepalive = socketKeepalive;
    }

    public Integer getSocketBacklog() {
        return socketBacklog;
    }

    public void setSocketBacklog(Integer socketBacklog) {
        this.socketBacklog = socketBacklog;
    }

}
